![]() In the new ITR-3 every VDA transaction will have to be reported along with the dates of sale and purchase. If you treat income from VDAs as capital gains, a quarterly breakup will need to be given under the Capital Gains Schedule. A new schedule VDA has been added to separately report your income from crypto/ other VDAs.Major Changes in ITR 3 form for AY 2023-24īelow changes are incorporated in the ITR-3 form of the FY 2022-23: The return may include income from house property, salary/pension, capital gains and income from other sources.Carrying on a business or profession (both tax audit and non-audit cases).The persons having income from following sources are eligible to file ITR-3 : Who can file ITR-3 Form? The ITR-3 is applicable for individual and HUF who have income from profits and gains from business or profession. Seeding the database while developing the application is essential, as it will give you the feeling of working with actual data.Īlso, knowing the tools available for working with seeds is more convenient and productive, so it is worth investing time in learning them.This page contains information on filing ITR-3 for FY 2022-23 (AY 2023-24) and FY 2021-22 (AY 2022-23). $ rails runner 'p lect(:title, :director, :storyline, :watched_on).last' # Code language: Shell Session ( shell ) P "Created # movies" Code language: Ruby ( ruby ) Storyline: "Terminator 2 follows Sarah Connor and her ten-year-old son John as they are pursued by a new, more advanced Terminator: the liquid metal, shapeshifting T-1000, sent back in time to kill John Connor and prevent him from becoming the leader of the human resistance.", ![]() A young Hobbit known as Frodo has been thrown on an amazing adventure, when he is appointed the job of destroying the One Ring, which was created by the Dark Lord Sauron.", Storyline: "The Fellowship of the Ring embark on a journey to destroy the One Ring and end Sauron's reign over Middle-earth. Title: "The Lord of the Rings: The Fellowship of the Ring", Storyline: "After landing the gig of a lifetime, a New York jazz pianist suddenly finds himself trapped in a strange land between Earth and the afterlife.", ![]() Open the db/seeds.rb file, and paste this: stroy_all Let’s get to the interesting part of this article. You can even filter by namespace, such as db: rails -T db Code language: Shell Session ( shell ) Creating some seeds How can you know about the available Rails commands? By using the -T parameter you can see a list: rails -T Code language: Shell Session ( shell ) T.datetime "updated_at", precision: 6, null: false end end Code language: Ruby ( ruby )Ĭool! This file will contain the entire database schema as we run more migrations. T.datetime "created_at", precision: 6, null: false Let’s see how the schema in db/schema.rb looks like after running the migration: ActiveRecord::fine( version: 2021_03_11_174407) doĬreate_table "movies", force: :cascade do |t| For example, if you want to undo 2 migrations, you can do it like this: rails db:rollback STEP=2 This command accepts an optional step parameter to go back as many migrations as needed. = 20210311174407 CreateMovies: reverted (0.0064s) = Code language: Shell Session ( shell ) Just in case you did something wrong, you can always rollback: $ rails db:rollback ![]() So now Rails has actually created the table. = 20210311174407 CreateMovies: migrated (0.0021s) = Code language: Shell Session ( shell ) Let’s see how it looks like! class CreateMovies 0.0020s Rails will generate a migration for you adapted to the default database, which is SQLite. Here you are setting the title and director as strings (default type if not specified), storyline as text, and watched_on as date (when setting dates, not datetimes, the convention is to append on to the name). ![]() rails g model Movie title director storyline:text watched_on:date Code language: Shell Session ( shell ) If you are curious, by typing rails generate (or the rails g shortcut), you will see all available generators. rails new sampleĬd sample Code language: Shell Session ( shell ) Creating a model Let’s start by creating a new application. Ruby on Rails has excellent tools for seeding a database, and thanks to the work of the community, many gems make this task easier.Īpart from seeding a database, we have helpful tools to check the database and better organize the data seeds.ĭo you want to see this article in video format? Creating a sample application 10 February 2021 Photo by Jeremy Bishop on Unsplash ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |